import React from "react";
import { Provider } from "react-redux";
import { store } from "./store";
import { HashRouter as Router, Switch } from "react-router-dom";
import { renderRouter, mainRouters } from "./routers";
import "antd/dist/antd.css"; // 引入官方提供的 less 样式入口文件
import "./App.css";

function App() {
  return (
    <div className="App">
      <Provider store={store}>
        <Router>
          <Switch>{renderRouter(mainRouters)}</Switch>
        </Router>
      </Provider>
    </div>
  );
}

export default App;
